<?php
/* 判断合法请求 */
!defined('IAN') && exit('Access Denied');
//引入分页类
require(CTRLS.DS.'page.php');
//引入通用基类
require(CTRLS.DS.'common.php');

/* 页面启动类 */
class Index
{
	private $pdo;
	private $tpl;
	private $url;
	public function __construct()
	{	
		$this->pdo = Common::getPDO();	
		$this->tpl = Common::getSmarty();
		$this->initIndex();
	}

	private function initIndex()
	{		
		$page = new Page();
		$page->indexPage();		
		$this->tpl->caching = FALSE;
		$time = date("Y-m-d H:m:s");
		$this->tpl->assign('time',$time);
		//局部非缓存
		require(DYN.DS.'index.php');
		$this->tpl->display("user/index.html");	
	}
}

$index = new Index();

?>